/*
 * parser.cpp
 *
 *  Created on: Jun 26, 2008
 *      Author: vjeko
 */

#include "parser.hpp"

namespace bf = boost::filesystem;

std::vector<std::string> parse_config(bf::path config_path) {

	std::string              line;
	bf::ifstream             config_ifstream(config_path);
	std::vector<std::string> ip_addresses;

	while (!config_ifstream.eof()) {
		std::getline(config_ifstream, line);
		ip_addresses.push_back(line);
	}

	return ip_addresses;
}
